package com.kaifamiao.month04.day28;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.Arrays;

public class Demo {

    public static void main(String[] args) throws IOException {
        FileReader fr = new FileReader("E:\\1101\\test\\reader.txt");
        char c = (char)fr.read();
        System.out.println(c);
        char[] cs = new char[4];
        int len = fr.read(cs);
        System.out.println(Arrays.toString(cs));
        BufferedReader br = new BufferedReader(fr);
        String str = br.readLine();
        System.out.println(str);
        fr.close();
    }
}
